/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cloudbus.cloudsim.power.models.scheduling.client;

import org.cloudbus.cloudsim.Cloudlet;
import org.cloudbus.cloudsim.Vm;

/**
 *
 * @author Márcio Costa Junior - University of São Paulo, Montana State University
 * 
 * Represents a request's job
 */
public class Job {
    
    //The virtual machine that will be created.
    private Vm vm;
    
    //Application to run on the vm - it could be a group of app, but on this case it won't be
    private Cloudlet cloudlet;
    
    public Job (Vm vm, Cloudlet cloudlet){
        setVm(vm);
        setCloudlet(cloudlet);
    }

    /**
     * @return the vm
     */
    public Vm getVm() {
        return vm;
    }

    /**
     * @param vm the vm to set
     */
    public void setVm(Vm vm) {
        this.vm = vm;
    }

    /**
     * @return the cloudlet
     */
    public Cloudlet getCloudlet() {
        return cloudlet;
    }

    /**
     * @param cloudlet the cloudlet to set
     */
    public void setCloudlet(Cloudlet cloudlet) {
        this.cloudlet = cloudlet;
    }
    
}
